package com.jadefashion.quartz;

import com.jadefashion.health.resources.QiniuUtils;
import com.jadefashion.health.resources.RedisConstant;
import com.jadefashion.service.OrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import java.util.Set;

@Component("orderCleanQuartz")
public class OrderCleanQuartz {
    @Reference
    private OrderService orderService;

    public void run(){
        System.out.println("开始执行清除任务");
        orderService.cleanUnpayedOrders();
    }
}
